﻿{% ifequal Tag 'my' %}
    {% for BlogItem in MyBlogs %}
	<form action="/blog_delete?tag={{ Tag }}&blogpage={{ CurBlogPage }}&commentonpage={{ CurCommentOnPage }}&item={{ CurrentBlog.key }}" method="post">

	<a href = "/blog?tag={{ Tag }}&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a><br>

	<div><input type="hidden" name="deleteblogkey" value="{{ BlogItem.key }}"/></div>
	<div><input type="submit" value="删除"/></div>
	</form>
    {% endfor %}
{% endifequal %}

{% ifequal Tag 'user' %}
    {% for BlogItem in MyBlogs %}
	<a href = "/blog?tag={{ Tag }}&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a><br>
    {% endfor %}
{% endifequal %}


{% ifequal Tag 'syshot' %}
    {% for BlogItem in HotBlogs %}
	{% if IsAdmin %}
		<form action="/blog_delete?tag={{ Tag }}&blogpage={{ CurBlogPage }}&commentonpage={{ CurCommentOnPage }}&item={{ CurrentBlog.key }}" method="post">
	{% endif %}

	<a href = "/blog?tag={{ Tag }}&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a><br>

	{% if IsAdmin %}
		<div><input type="hidden" name="deleteblogkey" value="{{ BlogItem.key }}"/></div>
		<div><input type="submit" value="删除"/></div>
		</form>
	{% endif %}
    {% endfor %}
{% endifequal %}

{% ifequal Tag 'sysnew' %}
    {% for BlogItem in NewBlogs %}
	{% if IsAdmin %}
		<form action="/blog_delete?tag={{ Tag }}&blogpage={{ CurBlogPage }}&commentonpage={{ CurCommentOnPage }}&item={{ CurrentBlog.key }}" method="post">
	{% endif %}

	<a href = "/blog?tag={{ Tag }}&item={{ BlogItem.key }}"><b>{{ BlogItem.Content|escape|truncatehanzi:"10" }}</b></a><br>

	{% if IsAdmin %}
		<div><input type="hidden" name="deleteblogkey" value="{{ BlogItem.key }}"/></div>
		<div><input type="submit" value="删除"/></div>
		</form>
	{% endif %}
    {% endfor %}
{% endifequal %}
	
	{% if PreBlogPage %}
		<a href = "/blog?tag={{ Tag }}&blogpage={{ PreBlogPage }}">上一页</a>
	{% endif %}
	
	{% if NextBlogPage %}
		<a href = "/blog?tag={{ Tag }}&blogpage={{ NextBlogPage }}">下一页</a>
	{% endif %}
